package com.edu.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.sql.Timestamp;
import java.util.LinkedList;

import com.alibaba.fastjson2.annotation.JSONField;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class OrderEntity {
    //订单
    private int orderId;
    private int userId;
    private Timestamp orderDate;
    private double totalAmount;
    private String status;
    private int addressId;

    @JSONField(serialize = false)
    private UserEntity userDetails;
    private LinkedList<OrderDetailEntity> orderItems;
}